<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../js/xback.js"></script>

<script>
XBack.listen(function(){
//     alert('oh! you press the back button');
//     window.open("www.baidu.com");
    if (localStorage.payhis1) {
		//localStorage.removeItem("addrHis");//清除addrHis的值
		//从本地存储中取出的是字符串，要转换成JSON才能遍历
		var d = new Date();
	//1970 年 1 月 1 日至今的毫秒数
		localStorage.payhis1 = d.getTime();
		
	} else {
		//本地存储没有addrHis的键值对，添加一个键值对
		//注意，HTML5 LocalStorage只能存字符串
		localStorage.payhis1 = "back";
	}
});

</script>

</head>
<body>

</body>
</html>